Approval Service
Dieser Service definiert Methoden zur Verwaltung von Vertretungen und Genehmigungen für Arbeits- und Projektzeiten.
GetOpenApprovalCountForIdentity
Diese Methode liefert die Anzahl der offenen Genehmigungen für Arbeits- und Projektzeiten der aktuellen Identität.
List<ApprovalPanelsInformationDto> GetOpenApprovalCountForIdentity(
out TpFault fault,
TpAuthentication authentication);
| Needed Permission | approval@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| return value | List containing the number of open approvals. |
GetOpenProjectTimeApprovalsForIdentity
Diese Methode liefert die offenen Genehmigungen für Projektzeiten der aktuellen Identität.
List<ProjectTimeApprovalItemDto> GetOpenProjectTimeApprovalsForIdentity(
out TpFault fault,
TpAuthentication authentication);
| Needed Permission | approval@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| return value | List containing the open project time approvals. |
GetOpenWorkTimeApprovalsForIdentity
Diese Methode liefert die offenen Genehmigungen für Arbeitszeiten der aktuellen Identität und Organisationseinheit.
List<WorkTimeApprovalItemDto> GetOpenWorkTimeApprovalsForIdentity(
out TpFault fault,
TpAuthentication authentication,
Guid selectedOrgaUnitId);
| Needed Permission | approval@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| selectedOrgaUnitId | ID of the selected organization unit. | |
| return value | List containing the open work time approvals. |
GetCoverPersons
Diese Methode liefert die Vertretungspersonen für die angegebenen Benutzer und den angegebenen Ursprung der Genehmigungsanfrage.
List<CoverPersonDto> GetCoverPersons(
out TpFault fault,
TpAuthentication authentication,
List<Guid> userIds,
ApprovalOrigin origin);
| Needed Permission | approval@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| userIds | List of user IDs. | |
| origin | Origin of the approval request. | |
| return value | List containing the cover persons. |
GetAvailableCoverPersonForIdentity
Diese Methode liefert die verfügbaren Vertretungspersonen für die aktuelle Identität.
List<CoverPersonDto> GetAvailableCoverPersonForIdentity(
out TpFault fault,
TpAuthentication authentication);
| Needed Permission | approval@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| return value | List containing the available cover persons. |
SaveCoverPersons
Diese Methode speichert die Vertretungspersonen.
List<CoverPersonDto> SaveCoverPersons(
out TpFault fault,
TpAuthentication authentication,
List<CoverPersonSaveDto> coverPersons);
| Needed Permission | approval@manage | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| coverPersons | Cover persons to save. | |
| return value | List containing the saved cover persons. |
DeleteCoverPersons
Diese Methode löscht Vertretungspersonen für die angegebenen Benutzer.
void DeleteCoverPersons(
out TpFault fault,
TpAuthentication authentication,
List<Guid> approverIds,
ApprovalOrigin origin);
| Needed Permission | approval@manage | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| approverIds | IDs of the users whose cover persons shall be deleted. | |
| origin | Origin of the approval request. |
GetApprovers
Diese Methode liefert alle Genehmigenden für die angegebenen Benutzer und den angegebenen Ursprung.
List<ApproverDto> GetApprovers(
out TpFault fault,
TpAuthentication authentication,
List<Guid> userIds,
ApprovalOrigin origin);
| Needed Permission | approval@access | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| userIds | List of user IDs for which approvers shall be retrieved. | |
| origin | Origin of the approval request. | |
| return value | List containing the approvers. |
SaveApprover
Diese Methode speichert einen Genehmigenden.
ApproverDto SaveApprover(
out TpFault fault,
TpAuthentication authentication,
ApproverSaveDto approver);
| Needed Permission | approval@manage | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| approver | Approver to save. | |
| return value | The saved approver. |
DeleteApprovers
Diese Methode löscht die Genehmigenden für die angegebenen Benutzer.
void DeleteApprovers(
out TpFault fault,
TpAuthentication authentication,
List<Guid> userIds,
ApprovalOrigin origin);
| Needed Permission | approval@manage | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| authentication | User authentication | |
| userIds | List of user IDs for which approvers shall be deleted. | |
| origin | Origin of the approval request. |
Sanity
Diese Methode liefert einen Zeitstempel des Servers zurück. Er kann zur Berechnung der Roundtrip-Zeit und zur Prüfung der Dienstverfügbarkeit verwendet werden.
DateTime Sanity(
out TpFault fault);
| Needed Permission | --- | |
|---|---|---|
| Name | Modifier | Description |
| fault | Out | Contains the error if an exception occurs. |
| return value | Server timestamp when the message was received. |